package com.soso.controller;

import com.soso.entity.Users;
import com.soso.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: demo
 * @description:
 * @author: SoSo
 * @create: 2021-01-29 21:58
 **/
@RestController
public class UsersController {
    @Autowired
    private UsersService usersService;

    @GetMapping("/getUsers")
    public Users getUsers(){

        return usersService.getUsers();
    }
}
